package org.example.chat.Controller;

import org.example.chat.Pojo.MessageBody;
import org.example.chat.Service.ChatService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @Author : zhangbo
 * @data : 2024/8/12
 * @description :
 */
@RequestMapping("/wechat")
public class ChatController {
    @Resource
    private ChatService chatService;
    @PostMapping("/send")
    public void SendMessage(@RequestBody MessageBody body){
        chatService.sendAndResult(body);
    }
}
